<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="../../css/mui.min.css">
<!--      <link rel="stylesheet" href="../../css/CFNetPP_Base.css">-->
<link rel="stylesheet" href="../../css/base.css">
<body>
<div  id='BarAppearance'></div>
<div class="base_navigation_bar base_style_color">
    <a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
    <span id="nav_title"></span>
</div>
</body>
<script src="../../script/jquery.min.js" type="text/javascript"></script>
<script src="../../script/ui.js"></script>
<script src="../../script/api.js" type="text/javascript"></script>
<script>
    apiready = function() {
        initHeaderUI();
        setupCourseFrame();
        api.addEventListener({
            name: 'keyback'
        }, function(ret, err) {
           backClick();
        });
    };
    function setupCourseFrame(){
        var y = $('#BarAppearance').height() + $('.base_navigation_bar').height();
        var h = api.winHeight - y;
        // if ($api.getStorage('cfnetppjxid') == 333){
        // h -= 52;
        // }
        var rect = {
            x : 0,
            y : y,
            w : 'auto',
            h : h
        };
        api.openFrame({
            name: 'otherFrame',
            url: api.pageParam.url,
            rect:rect
        });
    }
    function backClick() {
        api.historyBack({
            frameName: 'otherFrame'
        }, function(ret, err) {
            if (!ret.status) {
                api.closeWin();
            }
        });
    }
</script>
</html>